package com.zhouzhou.fastjava.query;

import java.io.Serializable;
/**
 * 需要查询的参数
 */
public class QueryFilter implements Serializable {

    private static final long serialVersionUID = 5512111696447573642L;

    private final String name;

    private final String value;

    public QueryFilter(String name, Object value) {
        super();
        this.name = name;
        if (value != null) {
            this.value = String.valueOf(value);
        } else {
            this.value = null;
        }
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

}
